package com.lyn.tencent_health_code.entity;

import com.alibaba.fastjson.JSON;

/**
 * @author almost
 */
public class Card {
    private String address;
    private String adminCard;
    private String adminExt;
    private Long adminFlag;
    private Long allowUnbind;
    private String authType;
    private Long bindHospital;
    private String birthday;
    private String cardType;
    private String channel;
    private String color;
    private String ecardNo;
    private String ext;
    private String extType;
    private String gender;
    private String healthCardId;
    private String idCard;
    private String idNumber;
    private String idType;
    private String isHomeMaster;
    private Long isVirtual;
    private String lastbind_time;
    private String name;
    private String nation;
    private String oldType;
    private String patid;
    private String phid;
    private String phone1;
    private String phone2;
    private String qrCodeText;
    private Long registerType;
    private String relation;

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }

    //<editor-fold defaultstate="collapsed" desc="delombok">
    @SuppressWarnings("all")
    public Card() {
    }

    @SuppressWarnings("all")
    public String getAddress() {
        return this.address;
    }

    @SuppressWarnings("all")
    public String getAdminCard() {
        return this.adminCard;
    }

    @SuppressWarnings("all")
    public String getAdminExt() {
        return this.adminExt;
    }

    @SuppressWarnings("all")
    public Long getAdminFlag() {
        return this.adminFlag;
    }

    @SuppressWarnings("all")
    public Long getAllowUnbind() {
        return this.allowUnbind;
    }

    @SuppressWarnings("all")
    public String getAuthType() {
        return this.authType;
    }

    @SuppressWarnings("all")
    public Long getBindHospital() {
        return this.bindHospital;
    }

    @SuppressWarnings("all")
    public String getBirthday() {
        return this.birthday;
    }

    @SuppressWarnings("all")
    public String getCardType() {
        return this.cardType;
    }

    @SuppressWarnings("all")
    public String getChannel() {
        return this.channel;
    }

    @SuppressWarnings("all")
    public String getColor() {
        return this.color;
    }

    @SuppressWarnings("all")
    public String getEcardNo() {
        return this.ecardNo;
    }

    @SuppressWarnings("all")
    public String getExt() {
        return this.ext;
    }

    @SuppressWarnings("all")
    public String getExtType() {
        return this.extType;
    }

    @SuppressWarnings("all")
    public String getGender() {
        return this.gender;
    }

    @SuppressWarnings("all")
    public String getHealthCardId() {
        return this.healthCardId;
    }

    @SuppressWarnings("all")
    public String getIdCard() {
        return this.idCard;
    }

    @SuppressWarnings("all")
    public String getIdNumber() {
        return this.idNumber;
    }

    @SuppressWarnings("all")
    public String getIdType() {
        return this.idType;
    }

    @SuppressWarnings("all")
    public String getIsHomeMaster() {
        return this.isHomeMaster;
    }

    @SuppressWarnings("all")
    public Long getIsVirtual() {
        return this.isVirtual;
    }

    @SuppressWarnings("all")
    public String getLastbind_time() {
        return this.lastbind_time;
    }

    @SuppressWarnings("all")
    public String getName() {
        return this.name;
    }

    @SuppressWarnings("all")
    public String getNation() {
        return this.nation;
    }

    @SuppressWarnings("all")
    public String getOldType() {
        return this.oldType;
    }

    @SuppressWarnings("all")
    public String getPatid() {
        return this.patid;
    }

    @SuppressWarnings("all")
    public String getPhid() {
        return this.phid;
    }

    @SuppressWarnings("all")
    public String getPhone1() {
        return this.phone1;
    }

    @SuppressWarnings("all")
    public String getPhone2() {
        return this.phone2;
    }

    @SuppressWarnings("all")
    public String getQrCodeText() {
        return this.qrCodeText;
    }

    @SuppressWarnings("all")
    public Long getRegisterType() {
        return this.registerType;
    }

    @SuppressWarnings("all")
    public String getRelation() {
        return this.relation;
    }

    @SuppressWarnings("all")
    public void setAddress(final String address) {
        this.address = address;
    }

    @SuppressWarnings("all")
    public void setAdminCard(final String adminCard) {
        this.adminCard = adminCard;
    }

    @SuppressWarnings("all")
    public void setAdminExt(final String adminExt) {
        this.adminExt = adminExt;
    }

    @SuppressWarnings("all")
    public void setAdminFlag(final Long adminFlag) {
        this.adminFlag = adminFlag;
    }

    @SuppressWarnings("all")
    public void setAllowUnbind(final Long allowUnbind) {
        this.allowUnbind = allowUnbind;
    }

    @SuppressWarnings("all")
    public void setAuthType(final String authType) {
        this.authType = authType;
    }

    @SuppressWarnings("all")
    public void setBindHospital(final Long bindHospital) {
        this.bindHospital = bindHospital;
    }

    @SuppressWarnings("all")
    public void setBirthday(final String birthday) {
        this.birthday = birthday;
    }

    @SuppressWarnings("all")
    public void setCardType(final String cardType) {
        this.cardType = cardType;
    }

    @SuppressWarnings("all")
    public void setChannel(final String channel) {
        this.channel = channel;
    }

    @SuppressWarnings("all")
    public void setColor(final String color) {
        this.color = color;
    }

    @SuppressWarnings("all")
    public void setEcardNo(final String ecardNo) {
        this.ecardNo = ecardNo;
    }

    @SuppressWarnings("all")
    public void setExt(final String ext) {
        this.ext = ext;
    }

    @SuppressWarnings("all")
    public void setExtType(final String extType) {
        this.extType = extType;
    }

    @SuppressWarnings("all")
    public void setGender(final String gender) {
        this.gender = gender;
    }

    @SuppressWarnings("all")
    public void setHealthCardId(final String healthCardId) {
        this.healthCardId = healthCardId;
    }

    @SuppressWarnings("all")
    public void setIdCard(final String idCard) {
        this.idCard = idCard;
    }

    @SuppressWarnings("all")
    public void setIdNumber(final String idNumber) {
        this.idNumber = idNumber;
    }

    @SuppressWarnings("all")
    public void setIdType(final String idType) {
        this.idType = idType;
    }

    @SuppressWarnings("all")
    public void setIsHomeMaster(final String isHomeMaster) {
        this.isHomeMaster = isHomeMaster;
    }

    @SuppressWarnings("all")
    public void setIsVirtual(final Long isVirtual) {
        this.isVirtual = isVirtual;
    }

    @SuppressWarnings("all")
    public void setLastbind_time(final String lastbind_time) {
        this.lastbind_time = lastbind_time;
    }

    @SuppressWarnings("all")
    public void setName(final String name) {
        this.name = name;
    }

    @SuppressWarnings("all")
    public void setNation(final String nation) {
        this.nation = nation;
    }

    @SuppressWarnings("all")
    public void setOldType(final String oldType) {
        this.oldType = oldType;
    }

    @SuppressWarnings("all")
    public void setPatid(final String patid) {
        this.patid = patid;
    }

    @SuppressWarnings("all")
    public void setPhid(final String phid) {
        this.phid = phid;
    }

    @SuppressWarnings("all")
    public void setPhone1(final String phone1) {
        this.phone1 = phone1;
    }

    @SuppressWarnings("all")
    public void setPhone2(final String phone2) {
        this.phone2 = phone2;
    }

    @SuppressWarnings("all")
    public void setQrCodeText(final String qrCodeText) {
        this.qrCodeText = qrCodeText;
    }

    @SuppressWarnings("all")
    public void setRegisterType(final Long registerType) {
        this.registerType = registerType;
    }

    @SuppressWarnings("all")
    public void setRelation(final String relation) {
        this.relation = relation;
    }

    @Override
    @SuppressWarnings("all")
    public boolean equals(final Object o) {
        if (o == this) return true;
        if (!(o instanceof Card)) return false;
        final Card other = (Card) o;
        if (!other.canEqual((Object) this)) return false;
        final Object this$adminFlag = this.getAdminFlag();
        final Object other$adminFlag = other.getAdminFlag();
        if (this$adminFlag == null ? other$adminFlag != null : !this$adminFlag.equals(other$adminFlag)) return false;
        final Object this$allowUnbind = this.getAllowUnbind();
        final Object other$allowUnbind = other.getAllowUnbind();
        if (this$allowUnbind == null ? other$allowUnbind != null : !this$allowUnbind.equals(other$allowUnbind)) return false;
        final Object this$bindHospital = this.getBindHospital();
        final Object other$bindHospital = other.getBindHospital();
        if (this$bindHospital == null ? other$bindHospital != null : !this$bindHospital.equals(other$bindHospital)) return false;
        final Object this$isVirtual = this.getIsVirtual();
        final Object other$isVirtual = other.getIsVirtual();
        if (this$isVirtual == null ? other$isVirtual != null : !this$isVirtual.equals(other$isVirtual)) return false;
        final Object this$registerType = this.getRegisterType();
        final Object other$registerType = other.getRegisterType();
        if (this$registerType == null ? other$registerType != null : !this$registerType.equals(other$registerType)) return false;
        final Object this$address = this.getAddress();
        final Object other$address = other.getAddress();
        if (this$address == null ? other$address != null : !this$address.equals(other$address)) return false;
        final Object this$adminCard = this.getAdminCard();
        final Object other$adminCard = other.getAdminCard();
        if (this$adminCard == null ? other$adminCard != null : !this$adminCard.equals(other$adminCard)) return false;
        final Object this$adminExt = this.getAdminExt();
        final Object other$adminExt = other.getAdminExt();
        if (this$adminExt == null ? other$adminExt != null : !this$adminExt.equals(other$adminExt)) return false;
        final Object this$authType = this.getAuthType();
        final Object other$authType = other.getAuthType();
        if (this$authType == null ? other$authType != null : !this$authType.equals(other$authType)) return false;
        final Object this$birthday = this.getBirthday();
        final Object other$birthday = other.getBirthday();
        if (this$birthday == null ? other$birthday != null : !this$birthday.equals(other$birthday)) return false;
        final Object this$cardType = this.getCardType();
        final Object other$cardType = other.getCardType();
        if (this$cardType == null ? other$cardType != null : !this$cardType.equals(other$cardType)) return false;
        final Object this$channel = this.getChannel();
        final Object other$channel = other.getChannel();
        if (this$channel == null ? other$channel != null : !this$channel.equals(other$channel)) return false;
        final Object this$color = this.getColor();
        final Object other$color = other.getColor();
        if (this$color == null ? other$color != null : !this$color.equals(other$color)) return false;
        final Object this$ecardNo = this.getEcardNo();
        final Object other$ecardNo = other.getEcardNo();
        if (this$ecardNo == null ? other$ecardNo != null : !this$ecardNo.equals(other$ecardNo)) return false;
        final Object this$ext = this.getExt();
        final Object other$ext = other.getExt();
        if (this$ext == null ? other$ext != null : !this$ext.equals(other$ext)) return false;
        final Object this$extType = this.getExtType();
        final Object other$extType = other.getExtType();
        if (this$extType == null ? other$extType != null : !this$extType.equals(other$extType)) return false;
        final Object this$gender = this.getGender();
        final Object other$gender = other.getGender();
        if (this$gender == null ? other$gender != null : !this$gender.equals(other$gender)) return false;
        final Object this$healthCardId = this.getHealthCardId();
        final Object other$healthCardId = other.getHealthCardId();
        if (this$healthCardId == null ? other$healthCardId != null : !this$healthCardId.equals(other$healthCardId)) return false;
        final Object this$idCard = this.getIdCard();
        final Object other$idCard = other.getIdCard();
        if (this$idCard == null ? other$idCard != null : !this$idCard.equals(other$idCard)) return false;
        final Object this$idNumber = this.getIdNumber();
        final Object other$idNumber = other.getIdNumber();
        if (this$idNumber == null ? other$idNumber != null : !this$idNumber.equals(other$idNumber)) return false;
        final Object this$idType = this.getIdType();
        final Object other$idType = other.getIdType();
        if (this$idType == null ? other$idType != null : !this$idType.equals(other$idType)) return false;
        final Object this$isHomeMaster = this.getIsHomeMaster();
        final Object other$isHomeMaster = other.getIsHomeMaster();
        if (this$isHomeMaster == null ? other$isHomeMaster != null : !this$isHomeMaster.equals(other$isHomeMaster)) return false;
        final Object this$lastbind_time = this.getLastbind_time();
        final Object other$lastbind_time = other.getLastbind_time();
        if (this$lastbind_time == null ? other$lastbind_time != null : !this$lastbind_time.equals(other$lastbind_time)) return false;
        final Object this$name = this.getName();
        final Object other$name = other.getName();
        if (this$name == null ? other$name != null : !this$name.equals(other$name)) return false;
        final Object this$nation = this.getNation();
        final Object other$nation = other.getNation();
        if (this$nation == null ? other$nation != null : !this$nation.equals(other$nation)) return false;
        final Object this$oldType = this.getOldType();
        final Object other$oldType = other.getOldType();
        if (this$oldType == null ? other$oldType != null : !this$oldType.equals(other$oldType)) return false;
        final Object this$patid = this.getPatid();
        final Object other$patid = other.getPatid();
        if (this$patid == null ? other$patid != null : !this$patid.equals(other$patid)) return false;
        final Object this$phid = this.getPhid();
        final Object other$phid = other.getPhid();
        if (this$phid == null ? other$phid != null : !this$phid.equals(other$phid)) return false;
        final Object this$phone1 = this.getPhone1();
        final Object other$phone1 = other.getPhone1();
        if (this$phone1 == null ? other$phone1 != null : !this$phone1.equals(other$phone1)) return false;
        final Object this$phone2 = this.getPhone2();
        final Object other$phone2 = other.getPhone2();
        if (this$phone2 == null ? other$phone2 != null : !this$phone2.equals(other$phone2)) return false;
        final Object this$qrCodeText = this.getQrCodeText();
        final Object other$qrCodeText = other.getQrCodeText();
        if (this$qrCodeText == null ? other$qrCodeText != null : !this$qrCodeText.equals(other$qrCodeText)) return false;
        final Object this$relation = this.getRelation();
        final Object other$relation = other.getRelation();
        if (this$relation == null ? other$relation != null : !this$relation.equals(other$relation)) return false;
        return true;
    }

    @SuppressWarnings("all")
    protected boolean canEqual(final Object other) {
        return other instanceof Card;
    }

    @Override
    @SuppressWarnings("all")
    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $adminFlag = this.getAdminFlag();
        result = result * PRIME + ($adminFlag == null ? 43 : $adminFlag.hashCode());
        final Object $allowUnbind = this.getAllowUnbind();
        result = result * PRIME + ($allowUnbind == null ? 43 : $allowUnbind.hashCode());
        final Object $bindHospital = this.getBindHospital();
        result = result * PRIME + ($bindHospital == null ? 43 : $bindHospital.hashCode());
        final Object $isVirtual = this.getIsVirtual();
        result = result * PRIME + ($isVirtual == null ? 43 : $isVirtual.hashCode());
        final Object $registerType = this.getRegisterType();
        result = result * PRIME + ($registerType == null ? 43 : $registerType.hashCode());
        final Object $address = this.getAddress();
        result = result * PRIME + ($address == null ? 43 : $address.hashCode());
        final Object $adminCard = this.getAdminCard();
        result = result * PRIME + ($adminCard == null ? 43 : $adminCard.hashCode());
        final Object $adminExt = this.getAdminExt();
        result = result * PRIME + ($adminExt == null ? 43 : $adminExt.hashCode());
        final Object $authType = this.getAuthType();
        result = result * PRIME + ($authType == null ? 43 : $authType.hashCode());
        final Object $birthday = this.getBirthday();
        result = result * PRIME + ($birthday == null ? 43 : $birthday.hashCode());
        final Object $cardType = this.getCardType();
        result = result * PRIME + ($cardType == null ? 43 : $cardType.hashCode());
        final Object $channel = this.getChannel();
        result = result * PRIME + ($channel == null ? 43 : $channel.hashCode());
        final Object $color = this.getColor();
        result = result * PRIME + ($color == null ? 43 : $color.hashCode());
        final Object $ecardNo = this.getEcardNo();
        result = result * PRIME + ($ecardNo == null ? 43 : $ecardNo.hashCode());
        final Object $ext = this.getExt();
        result = result * PRIME + ($ext == null ? 43 : $ext.hashCode());
        final Object $extType = this.getExtType();
        result = result * PRIME + ($extType == null ? 43 : $extType.hashCode());
        final Object $gender = this.getGender();
        result = result * PRIME + ($gender == null ? 43 : $gender.hashCode());
        final Object $healthCardId = this.getHealthCardId();
        result = result * PRIME + ($healthCardId == null ? 43 : $healthCardId.hashCode());
        final Object $idCard = this.getIdCard();
        result = result * PRIME + ($idCard == null ? 43 : $idCard.hashCode());
        final Object $idNumber = this.getIdNumber();
        result = result * PRIME + ($idNumber == null ? 43 : $idNumber.hashCode());
        final Object $idType = this.getIdType();
        result = result * PRIME + ($idType == null ? 43 : $idType.hashCode());
        final Object $isHomeMaster = this.getIsHomeMaster();
        result = result * PRIME + ($isHomeMaster == null ? 43 : $isHomeMaster.hashCode());
        final Object $lastbind_time = this.getLastbind_time();
        result = result * PRIME + ($lastbind_time == null ? 43 : $lastbind_time.hashCode());
        final Object $name = this.getName();
        result = result * PRIME + ($name == null ? 43 : $name.hashCode());
        final Object $nation = this.getNation();
        result = result * PRIME + ($nation == null ? 43 : $nation.hashCode());
        final Object $oldType = this.getOldType();
        result = result * PRIME + ($oldType == null ? 43 : $oldType.hashCode());
        final Object $patid = this.getPatid();
        result = result * PRIME + ($patid == null ? 43 : $patid.hashCode());
        final Object $phid = this.getPhid();
        result = result * PRIME + ($phid == null ? 43 : $phid.hashCode());
        final Object $phone1 = this.getPhone1();
        result = result * PRIME + ($phone1 == null ? 43 : $phone1.hashCode());
        final Object $phone2 = this.getPhone2();
        result = result * PRIME + ($phone2 == null ? 43 : $phone2.hashCode());
        final Object $qrCodeText = this.getQrCodeText();
        result = result * PRIME + ($qrCodeText == null ? 43 : $qrCodeText.hashCode());
        final Object $relation = this.getRelation();
        result = result * PRIME + ($relation == null ? 43 : $relation.hashCode());
        return result;
    }
    //</editor-fold>
}
